/* ========================================
 *
 * Copyright YOUR COMPANY, THE YEAR
 * All Rights Reserved
 * UNPUBLISHED, LICENSED SOFTWARE.
 *
 * CONFIDENTIAL AND PROPRIETARY INFORMATION
 * WHICH IS THE PROPERTY OF your company.
 *
 * ========================================
*/

#ifndef _LCD_CODE_H
#define _LCD_CODE_H
#include "r_cg_macrodriver.h"

#if 1
#define C_DGT_A                              ( 0x1 )
#define C_DGT_B                              ( 0x2 )
#define C_DGT_C                              ( 0x4 )
#define C_DGT_D                              ( 0x8 )
#define C_DGT_E                              ( 0x10 )
#define C_DGT_F                              ( 0x20 )
#define C_DGT_G                              ( 0x40 )
#define C_DGT_H                              ( 0x80 )
#define C_DGT_I                              ( 0 )
//#define C_DGT_DP                             ( 0x80 )
#endif
/*
#define C_DGT_A                              ( 0x2 )
#define C_DGT_B                              ( 0x4 )
#define C_DGT_C                              ( 0x8 )
#define C_DGT_D                              ( 0x10 )
#define C_DGT_E                              ( 0x20 )
#define C_DGT_F                              ( 0x1 )
#define C_DGT_G                              ( 0x40 )
#define C_DGT_H                              ( 0x80 )
#define C_DGT_I                              ( 0 )
*/

#define C_DIGITAL_DISPLAY_CODE_SPACE         0x00 

#define DIGITAL_CODE_0             ( C_DGT_A | C_DGT_B | C_DGT_C | C_DGT_D | C_DGT_E |   \
                                               C_DGT_F |  C_DGT_H |C_DGT_I    )
                                             
#define DIGITAL_CODE_1             ( C_DGT_B | C_DGT_C |C_DGT_H)

#define DIGITAL_CODE_2	     ( C_DGT_A | C_DGT_B | C_DGT_D | C_DGT_E | C_DGT_G  |  C_DGT_H |C_DGT_I )

#define DIGITAL_CODE_3	     ( C_DGT_A | C_DGT_B | C_DGT_C | C_DGT_D | C_DGT_G  |  C_DGT_H )

#define DIGITAL_CODE_4	     ( C_DGT_B | C_DGT_C | C_DGT_F | C_DGT_G  |  C_DGT_H |C_DGT_I )

#define DIGITAL_CODE_5	     ( C_DGT_A | C_DGT_C | C_DGT_D | C_DGT_F | C_DGT_G  |  C_DGT_H |C_DGT_I )

#define DIGITAL_CODE_6	     ( C_DGT_A | C_DGT_C | C_DGT_D | C_DGT_E | C_DGT_F |   \
                                               C_DGT_G   |  C_DGT_H |C_DGT_I   )
                                             
#define DIGITAL_CODE_7	     ( C_DGT_A | C_DGT_B | C_DGT_C  |  C_DGT_H ) 

#define DIGITAL_CODE_8	     ( C_DGT_A | C_DGT_B | C_DGT_C | C_DGT_D | C_DGT_E |   \
                                               C_DGT_F | C_DGT_G   |  C_DGT_H |C_DGT_I     )
                                             
#define DIGITAL_CODE_9	     ( C_DGT_A | C_DGT_B | C_DGT_C | C_DGT_D | C_DGT_F |   \
                                               C_DGT_G  |  C_DGT_H |C_DGT_I   )

#define DIGITAL_CODE_A	     ( C_DGT_A | C_DGT_B | C_DGT_C | C_DGT_E | C_DGT_F |   \
                                               C_DGT_G   |  C_DGT_H |C_DGT_I    )
                                             
                                             
#define DIGITAL_CODE_b             ( C_DGT_C | C_DGT_D | C_DGT_E | C_DGT_F | C_DGT_G  |  C_DGT_H |C_DGT_I )  

#define DIGITAL_CODE_C	     ( C_DGT_A | C_DGT_D | C_DGT_E | C_DGT_F  | C_DGT_I )  


#define DIGITAL_CODE_d             ( C_DGT_B | C_DGT_C | C_DGT_D | C_DGT_E | C_DGT_G  |  C_DGT_H |C_DGT_I )

#define DIGITAL_CODE_E	     ( C_DGT_A | C_DGT_D | C_DGT_E | C_DGT_F | C_DGT_G  |C_DGT_I )


#define DIGITAL_CODE_F	     ( C_DGT_A | C_DGT_E | C_DGT_F | C_DGT_G ) 

#define DIGITAL_CODE_H	     ( C_DGT_B | C_DGT_C | C_DGT_E | C_DGT_F | C_DGT_G  |  C_DGT_H |C_DGT_I  )

//#define DIGITAL_CODE_h             ( C_DGT_C | C_DGT_E | C_DGT_F | C_DGT_G )

#define DIGITAL_CODE_S	     ( C_DGT_A | C_DGT_C | C_DGT_D | C_DGT_F | C_DGT_G )

#define DIGITAL_CODE_P	     ( C_DGT_A | C_DGT_B | C_DGT_E | C_DGT_F | C_DGT_G )

#define DIGITAL_CODE_L             ( C_DGT_D | C_DGT_E | C_DGT_F ) 

#define DIGITAL_CODE_n             ( C_DGT_C | C_DGT_E | C_DGT_G ) 

#define DIGITAL_CODE_T             ( C_DGT_D | C_DGT_E | C_DGT_F | C_DGT_G )

#define DIGITAL_CODE_K             ( C_DGT_E | C_DGT_F | C_DGT_G )

#define DIGITAL_CODE_g             ( C_DGT_A | C_DGT_B | C_DGT_C | C_DGT_D | C_DGT_F |   \
                                               C_DGT_G                                             \
                                         )
 
#define C_DIGITAL_DISPLAY_CODE_y             ( C_DGT_B | C_DGT_C | C_DGT_D | C_DGT_F | C_DGT_G )

#define C_DIGITAL_DISPLAY_CODE_o             ( C_DGT_C | C_DGT_D | C_DGT_E | C_DGT_G )


#define C_DIGITAL_DISPLAY_CODE_U             ( C_DGT_B | C_DGT_C | C_DGT_D | C_DGT_E | C_DGT_F )

#define C_DIGITAL_DISPLAY_CODE_u             ( C_DGT_C | C_DGT_D | C_DGT_E )

#define C_DIGITAL_DISPLAY_CODE_t             ( C_DGT_D | C_DGT_E | C_DGT_F | C_DGT_G )

#define DISPLAY_CODE_R             ( C_DGT_B | C_DGT_E | C_DGT_F | C_DGT_G )
 
#define DISPLAY_CODE_r             (  C_DGT_E | C_DGT_G )

 
#define C_DIGITAL_DISPLAY_CODE_J             ( C_DGT_B | C_DGT_C | C_DGT_D | C_DGT_E )

#define C_DIGITAL_DISPLAY_CODE_X             ( C_DGT_B | C_DGT_C | C_DGT_E | C_DGT_F | C_DGT_G )

#define C_DIGITAL_DISPLAY_CODE_Q             ( C_DGT_A | C_DGT_B | C_DGT_C | C_DGT_F | C_DGT_G )

#define C_DIGITAL_DISPLAY_CODE__             ( C_DGT_G )

//#if 0
const uint8_t led_letter_code[]={
    
    DIGITAL_CODE_A,  //0
    DIGITAL_CODE_b,  //1
    DIGITAL_CODE_C,  //2
    DIGITAL_CODE_d,  //3
    DIGITAL_CODE_E,  //4
    DIGITAL_CODE_F,  //5
    DIGITAL_CODE_g,  //6
    DIGITAL_CODE_H,  //7
    DIGITAL_CODE_S,  //8
    DIGITAL_CODE_P,  //9 
    DIGITAL_CODE_L,  //10
    DIGITAL_CODE_n,  //11
    DIGITAL_CODE_T,  //12
    DIGITAL_CODE_K,  //13
    DIGITAL_CODE_g   //14
};
//#endif
  uint8_t led_number_code[]={
  //uint16_t led_number_code[]={
    DIGITAL_CODE_0,
    DIGITAL_CODE_1,
    DIGITAL_CODE_2,
    DIGITAL_CODE_3,
    DIGITAL_CODE_4,
    DIGITAL_CODE_5,
    DIGITAL_CODE_6,
    DIGITAL_CODE_7,
    DIGITAL_CODE_8,
    DIGITAL_CODE_9
};


typedef struct
{
	uint8_t dig_1A:1;
	uint8_t dig_1B:1;
	uint8_t dig_1C:1;
	uint8_t dig_1D:1;

	uint8_t dig_1E:1;
	uint8_t dig_1F:1;
	uint8_t dig_1G:1;
	uint8_t eco:1;

}PIN1;

typedef struct
{
	uint8_t dig_2A:1;
	uint8_t dig_2B:1;
	uint8_t dig_2C:1;
	uint8_t dig_2D:1;

	uint8_t dig_2E:1;
	uint8_t dig_2F:1;
	uint8_t dig_2G:1;
	uint8_t fire:1;

}PIN2;


typedef union
{
	uint8_t pin_buf[2];
	struct{
	PIN1 pin1;
	PIN2 pin2;

	}pin_info;

}COMM_DIG_TX;






 #endif

/* [] END OF FILE */

